// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        System.out.println("请默默地想一个1-10000的数字，记在心中，不要告诉任何人！！！");
        System.out.println("现在，请把你心中的数输入在这里，请放心，我会帮你保守这个秘密。请输入：");
        Scanner reader = new Scanner(System.in);
        int answer = reader.nextInt();
        boolean sussOrfail = false;
        System.out.println("太棒啦。命运的齿轮开始转动！请挑战14次把这个数字猜出。挑战成功可以召唤神龙。。。。");
        for (int i = 1; i <= 14; i++) {
            System.out.print("这是第"+i+"次机会。请说出你的猜测：");
            int Guessnubmer = reader.nextInt();
            if (Guessnubmer > answer) {
                System.out.println("太大了！！！！");
            } else if (Guessnubmer < answer) {
                System.out.println("太小了！！！！");
            } else {
                System.out.println("恭喜你，答对了！！");
                sussOrfail = true;
                break;
            }
        }
        if (!sussOrfail){
            System.out.println("很遗憾，挑战失败");
        }
    }
}